package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 考试申请
 */
@Data
public class ExamApply implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 机构id
     */
    private Integer trainingOrganizationId;

    /**
     * 考试id
     */
    private Integer examId;

    /**
     * 审核状态
     */
    private Integer status;

    /**
     * 培训记录凭证
     */
    private String trainingRecords;

    /**
     * 报名学员
     */
    private List<Student> students;

    /**
     * 报名考试
     */
    private Exam exam;

    /**
     * 机构名称
     */
    private String examName;

    /**
     * 机构名称
     */
    private String trainingOrganizationName;

    /**
     * 项目id
     */
    private Integer projectId;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 考核点id
     */
    private Integer pointId;

    /**
     * 考核点名称
     */
    private String pointName;

    /**
     * 考核点地址
     */
    private String pointAddress;

    /**
     * 租户编码
     */
    private String teamCode = BaseTeamEnum.BASE.getValue();

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}